package com.llmcu.trial.source.javase;

import java.util.Objects;

/**
 * xxxx
 *
 * @author liuling
 * @date 2024-12-13 10:03
 */
public class ObjectsDemo {
    public static void main(String[] args) {
        testRequireNonNull(null);
    }
    public static void testRequireNonNull(String param){
        Objects.requireNonNull(param,"param must be not null");
        System.out.println("do something");
    }
}
